//-----------------------------------------------------------------------
// <copyright file="a_UserBase.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ThoiTrang.Entities
{
	[Serializable]
	public class a_UserBase
	{
		
		#region Variable Declarations
		private int				userID = 0;
		private string				cookieID = string.Empty;
		private string				login_Email = string.Empty;
		private bool				emailConfirmed = false;
		private string				password = string.Empty;
		private string				firstname = string.Empty;
		private string				lastname = string.Empty;
		private string				title = string.Empty;
		private string				gender = string.Empty;
		private int				visits = 0;
		private int				hits = 0;
		private DateTime				lastVisit = new DateTime(1900,1,1,0,0,0,0);
		private DateTime				dateOpen = new DateTime(1900,1,1,0,0,0,0);
		private int				userTypeID = 0;
		private bool				isActive = false;
		private int				carID = 0;
		private bool				isAccessFeatured = false;
		#endregion
		
		#region Constructors
		public a_UserBase() {}
		
		public a_UserBase (
			int userID,
			string cookieID,
			string login_Email,
			bool emailConfirmed,
			string password,
			string firstname,
			string lastname,
			string title,
			string gender,
			int visits,
			int hits,
			DateTime lastVisit,
			DateTime dateOpen,
			int userTypeID,
			bool isActive,
			int carID,
			bool isAccessFeatured)
		
		{
			this.userID = userID;
			this.cookieID = cookieID;
			this.login_Email = login_Email;
			this.emailConfirmed = emailConfirmed;
			this.password = password;
			this.firstname = firstname;
			this.lastname = lastname;
			this.title = title;
			this.gender = gender;
			this.visits = visits;
			this.hits = hits;
			this.lastVisit = lastVisit;
			this.dateOpen = dateOpen;
			this.userTypeID = userTypeID;
			this.isActive = isActive;
			this.carID = carID;
			this.isAccessFeatured = isAccessFeatured;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int UserID
		{
			get { return userID; }
			set { userID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string CookieID
		{
			get { return cookieID; }
			set { cookieID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string Login_Email
		{
			get { return login_Email; }
			set { login_Email = value; }
		}
	
		/// <summary>
		/// 	required for redemption of certificate
		/// </summary>
		/// <value>This type is bit</value>
		public bool EmailConfirmed
		{
			get { return emailConfirmed; }
			set { emailConfirmed = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string Password
		{
			get { return password; }
			set { password = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Firstname
		{
			get { return firstname; }
			set { firstname = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Lastname
		{
			get { return lastname; }
			set { lastname = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is varchar</value>
		public string Title
		{
			get { return title; }
			set { title = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is char</value>
		public string Gender
		{
			get { return gender; }
			set { gender = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Visits
		{
			get { return visits; }
			set { visits = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Hits
		{
			get { return hits; }
			set { hits = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime LastVisit
		{
			get { return lastVisit; }
			set { lastVisit = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime DateOpen
		{
			get { return dateOpen; }
			set { dateOpen = value; }
		}
	
		/// <summary>
		/// 	0:normal users, 1 > content providers
		/// </summary>
		/// <value>This type is int</value>
		public int UserTypeID
		{
			get { return userTypeID; }
			set { userTypeID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool IsActive
		{
			get { return isActive; }
			set { isActive = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int CarID
		{
			get { return carID; }
			set { carID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool IsAccessFeatured
		{
			get { return isAccessFeatured; }
			set { isAccessFeatured = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum a_UserColumns
	{
		UserID,
		CookieID,
		Login_Email,
		EmailConfirmed,
		Password,
		Firstname,
		Lastname,
		Title,
		Gender,
		Visits,
		Hits,
		LastVisit,
		DateOpen,
		UserTypeID,
		IsActive,
		CarID,
		IsAccessFeatured
	}//End enum
}